package com.css.fxfzypg.modules.baseData.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class HistoricalSeismicDataVO implements IExcelDataModel, IExcelModel {

    @Excel(name = "发震时间（年.月.日）")
    @NotBlank(message = "缺失")
    private String textHsdTime;
    @Excel(name = "震中经度")
    @NotNull(message = "缺失")
    @Digits(fraction = 2,message = "最多2位小数", integer = 24)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal hsdLongitude;
    @Excel(name = "震中纬度")
    @NotNull(message = "缺失")
    @Digits(fraction = 2,message = "最多2位小数", integer = 24)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal hsdLatitude;
    @Excel(name = "震级")
    @Digits(fraction = 2,message = "最多2位小数", integer = 24)
    @NotNull(message = "缺失")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal hsdSgrade;
    @Excel(name = "震源深度（km）")
    @NotBlank(message = "缺失")
    private String hsdSdepth;
    @Excel(name = "震中烈度")
    //@NotBlank(message = "缺失")
    private String hsdSintensity;
    @Excel(name = "精度")
//    @NotBlank(message = "缺失")
    private String hsdPrecision;
    @Excel(name = "参考地名")
    @NotBlank(message = "缺失")
    private String hsdReferencename;

    private String createName;

    private Integer rowNum;
    private String errorMsg;


}
